package cn.funeralobjects.dictms.repository;

import cn.funeralobjects.dictms.entity.EDictRelatePath;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author FuneralObjects
 * Create date: 2020/6/2 11:33 PM
 */
public interface EDictRelatePathRepository extends JpaRepository<EDictRelatePath, Integer> {

    /**
     * where path like ${pathLike} and depth > ${depth}
     *
     * @param pathLike ${pathLike}
     * @param depth    ${depth}
     * @return select *
     */
    List<EDictRelatePath> findByPathLikeAndDepthIsGreaterThan(String pathLike, Short depth);
}
